#!/usr/bin/env python
# encoding: utf-8 

import pycurl, urllib, json, ConfigParser
try:
	from io import BytesIO
except ImportError:
	from StringIO import StringIO as BytesIO
# 获取配置文件中serviceId
def get_serviceId(env):
	conf = ConfigParser.ConfigParser()
	conf.read('/Users/sunying/Desktop/cloudwise/eclipse_work/QA-Automation-master/config/api_auth_data.ini')
	itms = conf.items(env)
	serviceId = conf.get(env, 'serviceId')
	return serviceId

# 获取配置文件中userId
def get_userId(env):
	conf = ConfigParser.ConfigParser()
	conf.read('/Users/sunying/Desktop/cloudwise/eclipse_work/QA-Automation-master/config/api_auth_data.ini')
	itms = conf.items(env)
	userId = conf.get(env, 'userId')
	return userId

# 获取配置文件中httpId
def get_httpId(env):
	conf = ConfigParser.ConfigParser()
	conf.read('/Users/sunying/Desktop/cloudwise/eclipse_work/QA-Automation-master/config/api_auth_data.ini')
	itms = conf.items(env)
	httpId = conf.get(env, 'httpId')
	return httpId
